package org.tuoren.official.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import org.tuoren.official.domain.TOrgStructure;

/**
 * 创新联合体组织架构业务对象 t_org_structure
 *
 * @author Lion Li
 * @date 2025-03-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TOrgStructure.class, reverseConvertGenerate = false)
public class TOrgStructureBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgUrl;

    /**
     * 背景地址
     */
    @NotBlank(message = "背景地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private  String  backUrl;
}
